import { http } from '@/utils/http'

/**
 * 获取用户信息
 */
export const getUserInfoAPI = () => {
  return http({
    method: 'GET',
    url: '/api/user/profile',
  })
}

/**
 * 修改用户信息
 */
export const putUserInfoAPI = (data) => {
  return http({
    method: 'PUT',
    url: '/api/user/profile',
    data,
  })
}
